First, let me say I'm NO programmer. And I've been acquainted with .NET less than 24 hours. And I spent most of those hours yelling at the computer. LOL
But, I finally did have a measure of success. I was able to write to a persist variable from the VB app. I tried every combination and 'had' to hit something that worked eventually. Here's what finally did something without tossing out error messages. I created a new button as used the line below to do the dirty work.
If KM_WriteLine("SetPersistHex95 2710") Then myerror()
This sets 2710 hex into persist variable 95 and this ultimately goes to my cheap chinese vfd as 100.00 hz (2710 hex = 10000, or 100.00 hz in vfd speak) which sets it to 6000 rpm. This might not be the best way but I wanted to put some sort of example on here. I searched and couldn't find anything.
I haven't tried reading a persist variable yet but that's next. After a celebratory beverage. :-)
> Are these the functions that should work with VB ?
> public int GetUserData(int index)
> public void SetUserData(int index, int data)
>
> Thanks
>